package com.dgut.coal.service;

import com.dgut.coal.dao.InfoDao;
import com.dgut.coal.entity.Info;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * @Author: Yang
 * @Description:
 * @Date: Created in 14:51 2019/9/29
 * @Modifued BY:
 */

public interface InfoService {

    List<Info> infolist(Integer notify_id, String title, Integer state);

    int deleteInfo(Integer id);

    int deleteMany(int[] ints);

    int temp(String create_user, String create_date, String title, String content, int state);

    Info ainfo(Integer notify_id);

    int edit(String title, String content, String format, Integer notify_id);

    int save(String create_user, String create_date, String title, String content, int state);

    int release(Integer notify_id);

    int updatesave(String title, String content, String format, Integer state, Integer notify_id);

    List<Info> auditInfo(Integer notify_id, String title);

    int pass(Integer notify_id, String audit_user, String audit_date);

    int reject(Integer notify_id, String audit_user, String audit_date);

    int count();

    int auditCount();

    List<Info> lastest();

}
